package com.cx.demo;

import com.cx.demo.bean.Hello;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author xiongmin
 * @version 1.0
 * @date 20-8-19 下午2:28
 */
public class IocApp5 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext1.xml");
        Hello hello = (Hello)ctx.getBean("hello");
        hello.sayHello();
    }
}
